import http from "@/api";

import { ResPage } from "@/api/interface";
import { OptionVo } from "@/biz/interface";
import { BillRiseEntity, BillRiseVo } from "@/biz/interface/BillType";

import { ModuleFlexJobUrl } from "..";

const moduleUrl = ModuleFlexJobUrl;

// * 获取列表
export const getBillRiseVoListApi = (params: {}) => {
  return http.post<ResPage<BillRiseVo>>(moduleUrl + `/billapi/billrisesuser`, params);
};

// * 新增接口
export const saveBillRiseApi = (company: BillRiseEntity) => {
  return http.post(moduleUrl + `/billapi/billrisesave`, company);
};

// * 详情接口
export const getBillRiseInfoApi = (params: { id: string }) => {
  return http.post<BillRiseEntity>(moduleUrl + `/billapi/billriseinfo`, params);
};

// * 删除接口
export const deleteBillRiseApi = (params: { id: string }) => {
  return http.post(moduleUrl + `/billapi/billriseremove`, params);
};

// * 获取下拉选择
export const getBillRiseDropApi = (params: {}) => {
  return http.post<ResPage<OptionVo>>(moduleUrl + `/cpy/clientdropvo`, params);
};
